/**
 * @Copyright: 2010 杭州海康威视系统技术有限公司
 * @address: http://www.hikvision.com
 * @ProjectName: CMS基线平台
 * @Description: 公司内部的基础平台
 */
package com.hlkj.baojin.utils.hik;

import java.util.HashMap;
import java.util.Map;

/*import com.hikvision.vtms.bo.ExtendResourceInfo;
import com.hikvision.vtms.service.ExtendResourceBusinessInitializer;
import com.hikvision.vtms.vo.CameraInfo;
import com.hikvision.vtms.vo.DeviceInfo;
import com.hikvision.vtms.vo.Intelligent;
import com.hikvision.vtms.vo.Organization;
import com.hikvision.vtms.vo.UserInfo;*/

public class WebServiceConstant {
	//平台服务接口常量
	public static final String          VmsSdkWebService_path              			= "vms/services/VmsSdkWebService";
	public static final String          VmsPlatFormSdkWebService_path               = "services/VmsSdkWebService";
	public static final String          VmsSdkWebService_namespace         			= "http://ws.vms.ivms6.hikvision.com";
	public static final String          VmsPlatformSdkWebservice_namespace          = "http://ws.common.hikvision.com";
	public static final String          VmsSdkWebService_sdkLogin   				= "sdkLogin";
	public static final String          VmsSdkWebService_applyToken  		 		= "applyToken";
	public static final String          VmsSdkWebService_getResourceByPage   		= "getResourceByPage";
	public static final String          VmsSdkWebService_getResourceByOrgCode 		= "getResourceByOrgCode";
	public static final String          VmsSdkWebService_getResourceByCodes   		= "getResourceByCodes";
	public static final String          VmsSdkWebService_ptzControl    				= "ptzControl";
	public static final String          VmsSdkWebService_changePresetInfo     		= "changePresetInfo";
	public static final String          VmsSdkWebService_getAlarmIoStatus     		= "getAlarmIoStatus";
	public static final String          VmsSdkWebService_doorControl   				= "doorControl";
	public static final String          VmsSdkWebService_getPlaybackOcxOptions     	= "getPlaybackOcxOptions";
	public static final String          VmsSdkWebService_alarmIoControl      		= "alarmIoControl";
	public static final String          VmsSdkWebService_getPreviewOcxOptions    	= "getPreviewOcxOptions";
	public static final String          VmsSdkWebService_checkResourcePrivilege     = "checkResourcePrivilege";
	public static final String          VmsSdkWebService_getPresetInfo    			= "getPresetInfo";
    public static final String          VmsSdkWebService_getAlarmHistory            = "getAlarmHistory";
	public static final String          VmsSdkWebService_gotoCruisePath             = "gotoCruisePath";
	public static final String          VmsSdkWebService_addPresetToCruisePath      = "addPresetToCruisePath";
	public static final String          VmsSdkWebService_getCruisePath              = "getCruisePath";
	public static final String          VmsSdkWebService_delPresetToCruisePathByNumber="delPresetToCruisePathByNumber";
	public static final String          VmsSdkWebService_setPresetListToCruisePath  = "setPresetListToCruisePath";
    public static final String          VmsSdkWebService_getPictureUrl              = "getPictureUrl";
    public static final String          VmsSdkWebService_snapPicture                = "snapPicture";
    public static final String          VmsSdkWebService_setOsdConfig               = "setOsdConfig";
    public static final String          VmsSdkWebService_setOsdConfigMultiple       = "setOsdConfigMultiple";
    public static final String          VmsSdkWebService_getPtzPosition             = "getPtzPosition";
    
    public static final String          VmsSdkWebService_lockPtz                    = "lockPtz";
    public static final String          VmsSdkWebService_snapPictureToShow          = "snapPictureToShow"; 
    public static final String          VmsSdkWebService_ptzGetLockStatusB          = "ptzGetLockStatusB";
    public static final String          VmsSdkWebService_ancillaryEquipmentControl  = "ancillaryEquipmentControl";  
    public static final String          VmsSdkWebService_getDoorStatus              = "getDoorStatusByUuids";
    public static final String          VmsSdkWebService_getGisInfoB                = "getGisInfoB"; 
    public static final String          VmsSdkWebService_ptzQueryStatusB            = "ptzQueryStatusB";
    public static final String          VmsSdkWebService_ptzQueryDateB              = "ptzQueryDateB";  
    public static final String          VmsSdkWebService_peagPtzSet                 = "peagPtzSet";  
    public static final String          VmsSdkWebService_queryResourceByPage        = "getResourceByCondition";
    public static final String          VmsSdkWebService_queryResourceByPageWithPrivilege        = "getResourceByPageWithPrivilege";

    //  public static final String          VmsSdkWebService_queryResourceByPage        = "queryResourcesByPage";
    public static final String          VmsSdkWebService_setPtzInfo                 = "setPtzPosition";  
    public static final String          VmsSdkWebService_getAlarmTriggerPicInfo        = "getAlarmTriggerPicInfo";
    public static final String          VmsSdkWebService_getServiceByType           ="getServiceByType";
    //登录时保存的常量
	public static final String          SERVICEIP                                   ="serviceIp";
	public static final String          SERVERPORT                                  ="serverPort";
	public static final String          TGT                                   		="_tgt";
	public static final String          NETZONEID                                   ="_netzoneid";
	public static final String 			USER_ID										="userId";						
	public static final String                  INDEX_CODE                          = "indexCode";
	public static final String                  TYPE                         		= "type";
	
	// 通用开关项常量
	public static final long					ON									= 1l << 1;
	
	public static final long					READ_ONLY							= 1l << 2;							// 只读
																														
	// 属性开关常量
	public static final long					FORM_VISIBLE						= 1l << 32;						// 表单显示
																														
	public static final long					GRID_VISIBLE						= 1l << 33;						// 列表显示
																														
	public static final long					UPDATE_READ_ONLY					= 1l << 34;						// 更新时只读
																														
	// 设备类型开关常量
	public static final long					MAIN_DEVICE							= 1l << 32;						// 主设备
																														
	public static final long					REMOTE_FETCH						= 1l << 33;						// 远程获取
																														
	public static final long					REMOTE_CONFIG						= 1l << 34;						// 远程配置
																														
	public static final long					ALARM_MANAGER						= 1l << 35;						// 告警管理
																														
	public static final long					REALTIME_DATA						= 1l << 37;						// 实时数据管理
																														
	// 设备类型码常量
	public static final String					RS485_TYPE							= "rs485";
	
	public static final String					PD_ICON								= "treeIcon";
	
	public static final String					PD_CHANNEL							= "channel";
	public static final String					ALARM_GEN_TYPE						= "alarmGenType";
	public static final String					ALARM_DOT_TYPE						= "alarmDotType";
	public static final String					INIT_VALUE							= "initValue";
	public static final String					REGIST_IP_ADDR						= "registIpAddr";// 注册地址
	
	public static final String					PD_SUB_TYPE							= "subType";
	public static final String					PD_UNIT								= "unit";
	public static final String					REALTIME_ANALOGVALUE				= "realtimeAnalogValue";			// 环境量实时值
																														
	public static final String					REALTIME_ANALOGVALUE_TIME			= "realtimeAnalogValueTime";		// 环境量实时值产生时间
																														
	public static final String					MORE_HIGH_ALARMVALUE				= "moreHighAlarmValue";			// 过高告警值
																														
	public static final String					LITTLE_HIGH_ALARMVALUE				= "littleHighAlarmValue";			// 偏高告警值
																														
	public static final String					LITTLE_LOW_ALARMVALUE				= "littleLowAlarmValue";			// 偏低告警值
																														
	public static final String					LESS_LOW_ALARMVALUE					= "lessLowAlarmValue";				// 过低告警值
																														
	public static final String					DEFENCE_TYPE						= "defence";
	
	public static final String					DEFENCE_INDEX						= "defenceIndex";
	
	public static final String					POWER_SEVER_GROUP					= "服务器模块";							// 电力配置的服务器的typeGroup名称
																														
	public static final String					POWER_SERVER_TYPE_CODE				= "serverTypeCode";				// 配置电力服务器类型的字段如20021
																														
	public static final String					YX_TYPE_CODE						= "yxDot";							// 遥信点typeCode
																														
	public static final String					DEVICE_FACTORY						= "deviceFactory";					// 设备厂家
																														
	public static final String					SUB_ADDRESS							= "subAddress";					// 从机地址
	public static final String					AIR_DEV_ADDR						= "airDevAddr";					// 空调设备地址
	public static final String					EQUIPMENT_ADDRESS					= "equipmentAddress";				// 设备地址
	public static final String					COM_NUMBER							= "comNumber";						// COM串口号
																														
	public static final String					OBJECT_TYPE_VMS						= "vmsServer";
	public static final String					OBJECT_TYPE_VRB						= "vrbServer";
	public static final String					OBJECT_TYPE_ORGANIZATION			= "organization";
	public static final String					OBJECT_TYPE_OBJECT_CONNECTION		= "objectConnection";
	public static final String					OBJECT_TYPE_CAMERA_INFO				= "cameraInfo";
	public static final String					OBJECT_TYPE_IO_INFO					= "ioInfo";
	public static final String					OBJECT_TYPE_PRESET_INFO				= "presetInfo";
	public static final String					OBJECT_TYPE_TRANSDUCER				= "tempHumTransducer";				// 温湿度
	public static final String					OBJECT_TYPE_UPS						= "ups";							// UPS
	public static final String					OBJECT_TYPE_DOOR					= "door";							// 门禁
	public static final String					OBJECT_TYPE_DOORCONTROL				= "doorControl";					// 门禁控制器
	public static final String					OBJECT_TYPE_AIRCONDITION			= "airCondition";					// 空调
	public static final String					OBJECT_TYPE_SENSOR					= "sensor";						// 环境量
																														
	public static final int						OBJECT_SUB_TYPE_TEMPERATURE			= 0;								// 温度
	public static final int						OBJECT_SUB_TYPE_HUMIDITY			= 1;								// 湿度
	public static final int						OBJECT_SUB_TYPE_ALARM_DOT			= 12;								// 告警点
	public static final int						OBJECT_SUB_TYPE_REMOTE			    = 13;                               // 遥控点
	public static final String					VALUES_ALL_IN						= "all";							// 表示包含所有值
	// 告警处理编号
	public static final int						ALARM_DISPOSE_CONFIRM				= 1;								// 告警确认
	public static final int						ALARM_DISPOSE_CANCEL				= 2;								// 告警取消
	// 取流类型:1-实时预览配置流媒体 2-电视墙配置流媒体 3-录像回放配置流媒体
	public static final int						STREAM_TYPE_PREVEIW					= 1;
	public static final int						STREAM_TYPE_TV						= 2;
	public static final int						STREAM_TYPE_STORAGE					= 3;
	// 联动类型
	public static final String					ALARM_TRIGGER_TYPE_CONFIRM			= "Trigger_Confirm";
	public static final String					ALARM_TRIGGER_TYPE_RECORD			= "Trigger_Record";
	public static final String					ALARM_TRIGGER_TYPE_PICTURE			= "Trigger_Picture";
	// 告警类型主类型
	public static final int						ALARM_TYPE_DOOR						= 0x00030000;
	public static final int						ALARM_TYPE_DH						= 0x00070000;
	public static final int						ALARM_TYPE_DOOR_ACCESS				= 198914;
	
	// 资源类型
	public static final int						TYPE_ORGANIZATION					= 1000;							// 组织机构
	public static final int						TYPE_CAMERA							= 10000;							// 监控点
	public static final int						TYPE_ENCODE_DEVICE					= 30000;							// 编码设备
	public static final int						TYPE_DECODE_DEVICE					= 110000;
	public static final int						TYPE_DEVICE_DH				= 60000;//动环设备
	public static final int						TYPE_DEVICE_8516				= 170000;//8516设备
	public static final int						TYPE_MATRIX							= 100000;
	public static final int						TYPE_ALARMIO						= 40000;
	public static final int						TYPE_AUDIOIO						= 90000;
	public static final int						TYPE_DECODE_GROUP					= 50000;
	public static final int						TYPE_RESOURCE_ORGANIZATION			= 1000;
	public static final int						TYPE_USER_ORGANIZATION				= 3000;
	public static final int						TYPE_APPLICATION					= 4000;
	public static final int						TYPE_USER							= 2000;
	public static final int						TYPE_SERVICE						= 5000;
	public static final int						TYPE_POOL							= 160000;
	public static final int						TYPE_VIEW							= 120000;
	public static final int						TYPE_DUTY_ROOM						= 200000;
	public static final int						TYPE_INTELLIGENT_DEVICE				= 400000;
	public static final int						TYPE_PERSONNEL_STATISTICAL_AREA		= 210000;
	
	public static final int						SORT_ASC							= 0;
	public static final int						SORT_DESC							= 1;
	
	public static final Map<Class<?>, Integer>	RES_OBJ_TYPE_MAP					= new HashMap<Class<?>, Integer>();
	/*static {
		RES_OBJ_TYPE_MAP.put(Organization.class, TYPE_ORGANIZATION);
		RES_OBJ_TYPE_MAP.put(CameraInfo.class, TYPE_CAMERA);
		RES_OBJ_TYPE_MAP.put(DeviceInfo.class, TYPE_ENCODE_DEVICE);
		RES_OBJ_TYPE_MAP.put(Intelligent.class, TYPE_INTELLIGENT_DEVICE);
		RES_OBJ_TYPE_MAP.put(UserInfo.class, TYPE_USER_ORGANIZATION);
	}*/
	// 缓存
	public static final String					CACHE_ORGANIZATION					= "CACHE_ORGANIZATION";
	public static final String					CACHE_CAMERA						= "CACHE_CAMERA";
	public static final String					CACHE_DEFUALT_DOMAINID				= "CACHE_DEFUALT_DOMAINID";		// 默认的域ID
	public static final String					CACHE_DAG							= "CACHE_DAG";						// DAG缓存信息
	public static final String					CACHE_DEVICE						= "CACHE_DEVICE";					// 编码设备缓存信息
	public static final String					CACHE_DH8516						= "CACHE_DH8516";					// DH 8516缓存信息
																														
	// 量程最大值
	public static final String					MAX_VALUE							= "maxValue";
	// 量程最小值
	public static final String					MIN_VALUE							= "minValue";
	// 限一值
	public static final String					BOUND_VALUE_1						= "boundValue1";
	// 限二值
	public static final String					BOUND_VALUE_2						= "boundValue2";
	// 限一
	public static final String					BOUND_1								= "bound1Type";
	// 限二
	public static final String					BOUND_2								= "bound2Type";
	// 上限
	public static final String					UP									= "up";
	// 下限
	public static final String					DOWN								= "down";
	
	// 服务类型
	public final static int						SERVICE_TYPE_CMS					= 1;								// CMS服务
	public final static int						SERVICE_TYPE_UMCC					= 2;								// UMCC服务
	public final static int						SERVICE_TYPE_PAG					= 3;								// 设备接入服务
	public final static int						SERVICE_TYPE_VTM					= 4;								// 流转发服务
	public final static int						SERVICE_TYPE_VRM					= 5;								// VRM服务
	public final static int						SERVICE_TYPE_TVMS					= 6;								// 电视墙服务
	public final static int						SERVICE_TYPE_EDS					= 7;								// 事件服务
	public final static int						SERVICE_TYPE_NCG					= 8;								// 级联服务
	public final static int						SERVICE_TYPE_NMS					= 9;								// 网管服务
	public final static int						SERVICE_TYPE_GIS					= 10;								// GIS服务
	public final static int						SERVICE_TYPE_PSS					= 11;								// 图片存储服务
	public final static int						SERVICE_TYPE_NTP					= 12;								// NTP服务
	public final static int						SERVICE_TYPE_VMS					= 13;								// VMS服务
	public final static int						SERVICE_TYPE_VMCC					= 14;								// VMCC服务
	public final static int						SERVICE_TYPE_V_PORTAL				= 15;								// 门户服务
	public final static int						SERVICE_TYPE_KMS					= 16;								// 内容管理服务
	public final static int						SERVICE_TYPE_DAG					= 17;								// 外设接入网关
	public final static int						SERVICE_TYPE_SAG					= 18;								// 短信接入网关
	public final static int						SERVICE_TYPE_KBS					= 19;								// 键盘代理服务
	public final static int						SERVICE_TYPE_JAMS					= 20;								// 接处警中心服务
	public final static int						SERVICE_TYPE_JAMC					= 21;								// 接处警管理中心
	public final static int						SERVICE_TYPE_DIS					= 22;								// 狱政服务
	public final static int						SERVICE_TYPE_VTMS					= 26;								// VTMS服务
	// 节点类型
	public final static int						NODE_TYPE_CMS						= 1;								// CMS服务节点
	public final static int						NODE_TYPE_CMS_NGINX					= 201;								// NGINX CMS服务节点
	public final static int						NODE_TYPE_UMCC						= 2;								// UMCC服务节点
	public final static int						NODE_TYPE_UMCC_NGINX				= 202;								// NGINX UMCC服务节点
	public final static int						NODE_TYPE_PAG						= 3;								// 设备接入服务节点
	public final static int						NODE_TYPE_VTM						= 4;								// 流转发服务管理节点
	public final static int						NODE_TYPE_VTDU						= 41;								// 流转发服务节点
	public final static int						NODE_TYPE_VRM						= 5;								// VRM服务节点
	public final static int						NODE_TYPE_NVR						= 51;								// NVR服务节点
	public final static int						NODE_TYPE_PCNVR						= 52;								// PCNVR服务节点
	public final static int						NODE_TYPE_CVR						= 53;								// CVR服务节点
	public final static int						NODE_TYPE_NVRCM						= 54;								// NVRCM服务节点
	public final static int						NODE_TYPE_LAKER						= 55;								// LAKER服务节点
	public final static int						NODE_TYPE_SMS						= 56;								// SMS服务节点
	public final static int						NODE_TYPE_TVMS						= 6;								// 电视墙服务节点
	public final static int						NODE_TYPE_EDS						= 7;								// 事件服务节点
	public final static int						NODE_TYPE_MQ						= 71;								// MQ服务节点
	public final static int						NODE_TYPE_NCG						= 8;								// 级联服务节点
	public final static int						NODE_TYPE_NMS						= 9;								// 网管服务节点
	public final static int						NODE_TYPE_GIS						= 10;								// GIS服务节点
	public final static int						NODE_TYPE_PSS						= 11;								// 图片存储服务节点
	public final static int						NODE_TYPE_NTP						= 12;								// NTP服务节点
	public final static int						NODE_TYPE_VMS						= 13;								// VMS服务节点
	public final static int						NODE_TYPE_VMS_NGINX					= 1301;							// NGINX VMS服务节点
	public final static int						NODE_TYPE_VMCC						= 14;								// VMCC服务节点
	public final static int						NODE_TYPE_VMCC_NGINX				= 1402;							// NGINX VMCC服务节点
	public final static int						NODE_TYPE_V_PORTAL					= 15;								// V_PORTAL服务节点
	public final static int						NODE_TYPE_V_PORTAL_NGINX			= 1501;							// V_PORTAL服务节点
	public final static int						NODE_TYPE_KMS						= 16;								// 内容管理服务节点
	public final static int						NODE_TYPE_DAG						= 17;								// 外设接入网关节点
	public final static int						NODE_TYPE_SAG						= 18;								// 短信接入网关节点
	public final static int						NODE_TYPE_KBS						= 19;								// 键盘代理服务节点
	public final static int						NODE_TYPE_JAMS						= 20;								// 接处警中心服务节点
	public final static int						NODE_TYPE_JAMS_NGINX				= 2001;							// 接处警中心服务节点
	public final static int						NODE_TYPE_JAMC						= 21;								// 接处警中心web节点
	public final static int						NODE_TYPE_JAMC_NGINX				= 2101;							// 接处警管理中心节点
	public final static int						NODE_TYPE_DIS						= 22;								// 狱政节点
																														
	public final static int						NET_DOMAIN_MAP_SERVER				= 1;								// 网域映射类型-服务器
	public final static int						NET_DOMAIN_MAP_SERVICE				= 2;								// 网域映射类型-服务
																														
	// MQ对象名称
	public static final String					WEB_MQ_TOPIC_DOOR_STATUS			= "web-doorData";					// 门禁状态MQ对象名称
	public static final String					WEB_MQ_QUEUE_EXP_DATA				= "exp-data";						// 导出数据MQ对象名称
																														
	public static final int						EXPORT2EXCEL_SHEET_PAGE_COUNT		= 20000;							// 导出excel限制每个SHEET的最大记录数
	public static final int						EXPORT2EXCEL_SHEET_COUNT			= 100;								// 导出excel限制SHEET的数量
																														
	// 告警状态
	public static final int						ALARM_STATUS_CALL					= 1;								// 正在告警
	public static final int						ALARM_STATUS_OFF					= 2;								// 告警结束
	public static final int						ALARM_STATUS_DISPOSED				= 3;								// 已处理
	public static final String					ALARM_STATUS_CALL_CODE				= "alarm_status_call";				// 告警状态编码
	public static final String					ALARM_STATUS_CALL_HUMIDITY_CODE		= "alarm_status_call_humidity";	// 告警状态编码
	public static final String					ALARM_STATUS_CALL_TEMPERATURE_CODE	= "alarm_status_call_temperature";	// 告警状态编码
	public static final int						DOOR_ALARM_TIME						= 5000;							// 门禁告警超时时间
																														
	public static final int						ALARM_CONFIRM_YES					= 2;								// 告警已确认
	public static final int						ALARM_CONFIRM_NO					= 1;								// 告警未确认
	public static final int						ALARM_CONFIRM_ALL					= 0;								// 全部
																														
	// 设备控制类型
	public static final int						CTRL_TYPE_PTZ						= 100;								// 云台控制(VAG)
	public static final int						CTRL_TYPE_IO						= 0;								// I/O输出 对应控制值：CTRL_VALUE_IO
	public static final int						CTRL_TYPE_DOOR						= 1;								// 远程开门 对应控制值：CTRL_VALUE_DOOR
	public static final int						CTRL_TYPE_IPPHONE					= 2;								// 控制IP电话 对应控制值：CTRL_VALUE_IPPHONE
	public static final int						CTRL_TYPE_EQLED						= 3;								// 控制EQLED设备 对应控制值：CTRL_VALUE_LED
	public static final int						CTRL_TYPE_ELECNET					= 4;								// 电网控制，对应控制值：CTRL_VALUE_ELECNET
	public static final int						CTRL_TYPE_TALK						= 5;								// 对讲主机，对应控制值：CTRL_VALUE_TALK
	public static final int						CTRL_TYPE_BROADCAST					= 6;								// 广播主机，对应控制值：CTRL_VALUE_BROADCAST
																														
	// 门远程控制值
	public static final int						CTRL_VALUE_DOOR_OPEN				= 0;								// 开门
	public static final int						CTRL_VALUE_DOOR_CLOSE				= 1;								// 关门
	public static final int						CTRL_VALUE_DOOR_OPEN_ONCE			= 2;								// 开门一次
																														
	public static final String					SESSION_USER_INFO					= "SESSION_USER_INFO";
	public static final String					FILE_UPLOAD_DETAIL					= "FILE_UPLOAD_DETAIL";
	public static final String					FILE_UPLOAD_EVENT_ID				= "FILE_UPLOAD_EVENT_ID";
	public static final int						REALTIME_MAX_COUNT					= 50;								// 实时告警最大记录数
	public static final String					URL_PREFIX_FTP						= "ftp://";
	
	public static final String					WS_RESULT_CODE_SUCCESS				= "0";
	//监控点告警类型的事件
//	  <监控点>
//	    <typ value="0" des=""/>
//	    <typ value="131329" des="视频丢失"/>
//		<typ value="131330" des="遮挡告警"/>
//		<typ value="131331" des="移动侦测"/>
//		<typ value="131332" des="PIR告警"/>
//		<typ value="131333" des="无线告警"/>
//		<typ value="131334" des="呼救告警"/>
//	  </监控点>
	public static final String                  CAMERA_ALARM_TYPE                   ="131329,131330,131331,131332,131333,131334,131335";
	//报警器告警类型的事件
//	<报警器>
//	<typ value="589825" des="告警输入"/>
//  </报警器>
	public static final String                  ANNUNCIATOR_ALARM_TYPE              ="589825";
	//智能告警类型的事件
//	<智能监控点>
//    <typ value="0" des=""/>
//    <typ value="131605" des="人员倒地"/>
//	<typ value="131631" des="人数异常"/>
//	<typ value="131632" des="间隔异常"/>
//	<typ value="131633" des="人员站立"/>
//	<typ value="131621" des="人脸侦测"/>
//	<typ value="131622" des="车辆侦测"/>
//	<typ value="131615" des="黑名单比对结果"/>
//	<typ value="131585" des="穿越警戒面"/>
//	<typ value="131586" des="进入区域"/>
//	<typ value="131587" des="离开区域"/>
//	<typ value="131588" des="区域入侵"/>
//	<typ value="131590" des="徘徊"/>
//	<typ value="131591" des="停车"/>
//	<typ value="131592" des="快速移动"/>
//	<typ value="131593" des="人员聚集"/>
//	<typ value="131594" des="物品遗留"/>
//	<typ value="131595" des="物品拿取"/>
//	<typ value="131612" des="场景变更报警"/>
//	<typ value="131613" des="虚焦报警"/>
//	<typ value="131623" des="音频输入异常"/>
//	<typ value="131624" des="音频输入突变"/>
//	<typ value="131625" des="车辆-正常进入"/>
//	<typ value="131626" des="车辆-非法进入"/>
//	<typ value="1114625" des="车辆-超速告警"/>
//	<typ value="196353" des="热成像烟火识别"/>
//	<typ value="196354" des="可见光烟火识别"/>

//  </智能监控点>
	public static final String                  SMART_ALARM_TYPE                    ="131605,131631,131632,131633,131633,131622,131615,131585,131586,131587,131587,131590,131591,131592,131593,131594,131595,131612,131613,131623,131624,131625,131626,131624,131625,131626,1114625,196353,196354";
	//防区告警类型事件
//	 <防区>
//		<typ value="327681" des="防区告警"/>
//	  </防区>
	public static final String                  DEFENSE_ALARM_TYPE                  ="327681";
	//门禁告警类型事件
//	  <门禁>
//	    <typ value="0" des=""/>
//	    <typ value="197382" des="刷卡密码错"/>
//		<typ value="197634" des="非法卡"/>
//		<typ value="198400" des="长时间未关门"/>
//		<typ value="198657" des="暴力开门"/>
//		<typ value="198913" des="门打开"/>
//		<typ value="198914" des="刷卡开门"/>
//		<typ value="198915" des="超级密码开门"/>
//		<typ value="198916" des="按钮开门"/>
//		<typ value="199169" des="门关闭"/>
//		<typ value="199428" des="胁迫开门"/>
//		<typ value="261889" des="门禁路径超时"/>
//	  </门禁>
	public static final String                  DOOR_ALARM_TYPE                     ="197382,197634,198400,198657,198913,198914,198915,198916,199169,199428,261889";
//环境告警类型的事件
//	  <环境量>
//	     <typ value="4000001" des="温度偏低告警"/>
//	<typ value="4000002" des="温度偏高告警"/>
//	<typ value="4000011" des="湿度偏低告警"/>
//	<typ value="4000012" des="湿度偏高告警"/>
//	<typ value="4000021" des="风速偏低告警"/>
//	<typ value="4000022" des="风速偏高告警"/>
//	<typ value="4000031" des="气体浓度偏低告警"/>
//	<typ value="4000032" des="气体浓度偏高告警"/>
//	<typ value="4000041" des="电压偏低告警"/>
//	<typ value="4000042" des="电压偏高告警"/>
//	<typ value="4000051" des="电流偏低告警"/>
//	<typ value="4000052" des="电流偏高告警"/>
//	<typ value="4000061" des="频率偏低告警"/>
//	<typ value="4000062" des="频率偏高告警"/>
//	<typ value="4000071" des="功率偏低告警"/>
//	<typ value="4000072" des="功率偏高告警"/>
//	<typ value="4000081" des="流量偏低告警"/>
//	<typ value="4000082" des="流量偏高告警"/>
//	<typ value="4000091" des="电池备份时间偏低告警"/>
//	<typ value="4000092" des="电池备份时间偏高告警"/>
//	<typ value="4000101" des="负载率偏低告警"/>
//	<typ value="4000102" des="负载率偏高告警"/>
//	<typ value="4000111" des="功率因素偏低告警"/>
//	<typ value="4000112" des="功率因素偏高告警"/>
//	<typ value="3000000" des="异常告警"/>
//	  </环境量>	
	public static final String                  REALDATA_ALARM_TYPE                 ="4000001,4000002,4000011,4000012,4000021,4000022,4000031,4000032,4000041,4000042,4000051,4000052,4000061,4000062,4000071,4000072,4000081,4000082,4000091,4000092,4000101,4000102,4000111,4000112,3000000";
	//移动设备告警类型的事件
//	  <移动设备>
//	    <typ value="0" des=""/>
//	    <typ value="66049" des="设备掉线"/>
//		<typ value="66050" des="硬盘满"/>
//		<typ value="66054" des="硬盘错"/>
//		<typ value="851970" des="设备超速"/>
//		<typ value="851971" des="轨迹偏移"/>
//		<typ value="851973" des="围栏告警"/>
//		<typ value="851977" des="自定义超速"/>
//	  </移动设备>
	public static final String                  MOBILE_DEVICE_ALARM_TYPE            ="66049,66050,66054,851970,851971,851973,851977" ;                
	//设备类型告警事件
//	  <设备>
//	    <typ value="0" des=""/>
//	    <typ value="66049" des="设备掉线"/>
//		<typ value="66050" des="硬盘满"/>
//		<typ value="66054" des="硬盘错"/>
//		<typ value="851970" des="设备超速"/>
//		<typ value="851971" des="轨迹偏移"/>
//		<typ value="851973" des="围栏告警"/>
//		<typ value="851977" des="自定义超速"/>
//	  </设备>
	public static final String                  DEVICE_ALARM_TYPE                   ="66049,66050,66054,851970,851971,851973,851977";
	
	
	public static final String                  ALL_ALARM_TYPE ="131329,131330,131331,131332,131333,131334,131335,589825,131605,131631,131632,131633,131633,131622,131615,131585,131586,131587,131587,131590,131591,131592,131593,131594,131595,131612,131613,131623,131624,131625,131626,131624,131625,131626,1114625,196353,196354,196355,327681,197382,197634,198400,198657,198913,198913,198915,198916,199169,199428,261889,131329,131330,131331,131332,131333,131334,131337,66049,66050,66054,851970,851971,851973,851977";
	
	//	public static final Set<String> CAMERA_ALARM_TYPE = new HashSet<String>();
//	static{
//		CAMERA_ALARM_TYPE.add("131329");//视频丢失
//		CAMERA_ALARM_TYPE.add("131330");//遮挡告警
//		CAMERA_ALARM_TYPE.add("131331");//移动侦测
//		CAMERA_ALARM_TYPE.add("131332");//
//		CAMERA_ALARM_TYPE.add("131333");//
//		CAMERA_ALARM_TYPE.add("131334");//
//		CAMERA_ALARM_TYPE.add("131335");//
//	}	
//	public static final Set<String> DEVICE_ALARM_TYPE = new HashSet<String>();
//	static{
//		DEVICE_ALARM_TYPE.add("66049");
//		DEVICE_ALARM_TYPE.add("66050");
//		DEVICE_ALARM_TYPE.add("66054");
//		DEVICE_ALARM_TYPE.add("851970");
//		DEVICE_ALARM_TYPE.add("851971");
//		DEVICE_ALARM_TYPE.add("851973");
//		DEVICE_ALARM_TYPE.add("851977");
//	}
	/*public static Map<String, String> getBusinesses(ExtendResourceInfo deviceInfo) {
		return ExtendResourceBusinessInitializer.getBusinesses(deviceInfo);
	}
	
	public static String getUnit(ExtendResourceInfo deviceInfo) {
		Map<String, String> map = ExtendResourceBusinessInitializer.getBusinesses(deviceInfo);
		return map.get("unit");
	}
	
	public static String getTreeIcon(ExtendResourceInfo deviceInfo) {
		Map<String, String> map = ExtendResourceBusinessInitializer.getBusinesses(deviceInfo);
		String ctx = CfgMgr.getServiceContextPath();
		return "/" + ctx + map.get("tree_icon");
	}
	
	public static String getVtmsTreeIcon(ExtendResourceInfo deviceInfo) {
		Map<String, String> map = ExtendResourceBusinessInitializer.getBusinesses(deviceInfo);
		return map.get("vtms_tree_icon");
	}
	
	public static String getMapResourceCode(ExtendResourceInfo deviceInfo) {
		Map<String, String> map = ExtendResourceBusinessInitializer.getBusinesses(deviceInfo);
		return map.get("map_resource_code");
	}*/
	
}
